package com.base;

import android.content.Context;

/**
 * Created by Administrator on 2018/1/25.
 */

public abstract class BasePresenter<T extends BaseContract.RootView> implements BaseContract.RootPresenter<T> {
    protected T mView;
    public Context context;

    protected BasePresenter(Context context){
        this.context = context;
    }

    protected BasePresenter(){}

    @Override
    public void attachView(T view) {
        this.mView = view;
    }

    @Override
    public void detachView() {
        this.mView = null;
    }
}
